Mailinglist: first-gmbh-internal from 5005:
Create New Mailinglist As Global Admin| name | value |
|---|---|
| partnerPersonTradeName | First GmbH |
| subscriberFamilyName | Miller |
| subscriberGivenName | Frida |
| subscriberEMailAddress | frida.miller@example.org |
| mailingList | first-gmbh-internal |
HTTP GET "/api/hs/office/persons?name=First+GmbH" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<tst-person_firbysusan>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "f726eb70-6779-41eb-a327-09e132a0cdd5", // Person: First GmbH
"personType" : "LEGAL_PERSON",
"tradeName" : "First GmbH",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
HTTP POST "/api/hs/office/relations" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<tst-person_firbysusan>"` \
`# }` \
<<EOF
{
"type" : "SUBSCRIBER",
"mark" : "first-gmbh-internal",
"anchor.uuid" : "f726eb70-6779-41eb-a327-09e132a0cdd5", // Person: First GmbH
"holder" : {
"personType" : "NATURAL_PERSON",
"familyName" : "Miller",
"givenName" : "Frida"
},
"contact" : {
"caption" : "Frida Miller",
"emailAddresses" : {
"main" : "frida.miller@example.org"
}
}
}
EOF
=> status: 201 CREATED aee9fb45-c87b-458b-9bd3-538ae4592d3a
generated on 2026-08-10 01:37:55 for branch